import { get, patch } from './api-caller';
import { MeRichInfo, MeInfo } from './me.types';

const getMe = () => get<MeRichInfo>({ path: '/api/me' });

const updateMeInfo = (payload: MeInfo) => patch<MeRichInfo>({ path: '/api/me/info', body: payload });

const meApis = { getMe, updateMeInfo };

export default meApis;
